package com.qfedu.luck.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @program: LuckStudy
 * @description:
 * @author: Feri(邢朋辉)
 * @create: 2021-02-24 15:14
 */
public class SessionListener implements HttpSessionListener {
    public static int nums;
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        nums++;
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        nums--;
    }
}
